<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="__TMPL__style/supply-style.css" />
<link href="__TMPL__style/huodong-style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
<script type="text/javascript" src="__TMPL__js/jquery.dragndrop.js"></script>	
<script type="text/javascript" src="__TMPL__js/jquery.msgbox.js"></script>
<title>线下活动申请表格</title>
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
td{line-height:16px;padding:3px 0;}
-->
</style>
</head>

<body style="background-color:#fff">
<div class="pop-apply">
	<!--<div class="pop-apply-top"></div>-->
    <div class="pop-apply-middle">
    	<div class="pop-form">
        	<form id="aform" action="__URL__/huodong_apply">
            	<div class="contact">
				<label style="width:400px;"><p>红色星号必填项</p></label>
            	<label>会员账号：<input name="user_name" id="user_name" value="{$user.username}" type="text" /><span style="color:red">*</span></label>
                <label>电子邮箱：<input name="email" id="email" value="{$user.email}" type="text" /><span style="color:red">*</span></label>
                <label>真实姓名：<input name="real_name" id="real_name" type="text" /><span style="color:red">*</span></label>
                <label>公司名称：<input name="com" id="com" type="text" /><span style="color:red">*</span></label>
                <label>联系电话：<input name="phone" id="phone"type="text" /></label>
                <label>联系手机：<input name="mobile" id="mobile"type="text" /><span style="color:red">*</span></label>
                <div class="clear"></div>
                </div>
                <p>选择参加聚会的城市:<span style="color:red">*</span></p>
              	<p>
                  	<label>
                    <input name="city" type="radio" id="RadioGroup1_0" value="gz" />
                    广州</label>
                  	<label>
                    <input type="radio" name="city" value="sz" id="RadioGroup1_1" />
                    深圳</label>
                    <!--<label>
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_1" />
                    东莞</label>
                    <label>
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_1" />
                    中山</label>-->
                    <label>
                    <input type="radio" name="city" value="sh" id="RadioGroup1_1" />
                    上海</label>
                    <!--<label>
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_1" />
                    昆山</label>
                    <label>
                    <input type="radio" name="RadioGroup1" value="单选" id="RadioGroup1_1" />
                    北京</label>-->
              	</p>
                <p>备注</p>
              	<p>
                <textarea cols="54" rows="5" name="note" class="pop-txt"></textarea>
              	</p>
                <p class="btn-pop-ok"><input name="" type="button" onclick="return subForm();"/></p>
        	</form>
        </div>
    </div>
    <div class="pop-apply-foot"></div>
</div>
</form>
<script>
   function subForm(){
     if(checkForm()){
     ajax.sendForm('aform',
	  function(data){
	    alert(data.info); 
		top.$mb.close();
      });}
     
	  return false;
   }
   function checkForm(){
       var flag=true;
	   var message='';
	   //alert($("input[name='city']:checked").val());
	   if($("input[name=city]:checked").val()==null){
	     flag=false;
		 message='请选择希望参加活动的城市';
	   }
	   if($('#mobile').val()==''){
	     flag=false;
		 message='请填写您的联系手机';
	   }
	   if($('#com').val()==''){
	     flag=false;
		 message='请填写所在公司或者企业';
	   }
	   if($('#real_name').val()==''){
	     flag=false;
		 message='请填写真实姓名';
	   }
	   if($('#email').val()==''){
	     flag=false;
		 message='请填写邮箱';
	   }
	   if($('#user_name').val()==''){
	     flag=false;
		 message='会员账号不能为空';
	   }
	   if(message!='')alert('您好！ '+message);
	   return flag;    
   }
</script>
</body>
</html>
